function goTo(theUrl) {
	document.location.href = theUrl;
}

function showHelAsikt(id) {
	document.getElementById('asikt' + id + 'kort').style.display = 'none';
	document.getElementById('asikt' + id + 'hela').style.display = 'block';
}

function showMindreAsikt(id) {
	document.getElementById('asikt' + id + 'hela').style.display = 'none';
	document.getElementById('asikt' + id + 'kort').style.display = 'block';
}

function showHide(id) {
	var theDiv = document.getElementById(id);
	
	if(theDiv.style.display == 'none') {
		theDiv.style.display = 'block';
	} else {
		theDiv.style.display = 'none';
	}
}

function hints(id, hintText) {	
	var theField = document.getElementById(id);
	
	if(theField.value == hintText) {
		theField.value = "";
		if(id == "title") {
			theField.style.color="#999999";
		} else {
			theField.style.color="#000000";
		}
	} else if(theField.value == "") {
		theField.value = hintText;
		if(id == "title") {
			theField.style.color="#CCCCCC";
		} else {
			theField.style.color="#999999";
		}
	}
}